package com.zzyl.mapper;

import com.zzyl.dto.NursingProjectPlanDto;
import com.zzyl.entity.NursingProjectPlan;
import com.zzyl.vo.NursingProjectPlanVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface NursingProjectPlanMapper {

    //新增护理计划关联的护理项目
    int insertprojectPlan(@Param("list") List<NursingProjectPlan> projectPlans);

    //查询护理计划关联的护理项目
    List<NursingProjectPlanVo> selectByPlanId(@Param("planId") Long planId);

    //删除护理计划关联护理项目
    void deleteByPlanId(@Param("planId") Long planId);

    int insert(NursingProjectPlan projectPlan);

    int update(NursingProjectPlan projectPlan);

    int deleteByIds(@Param("list") List<Long> ids);

    NursingProjectPlan getById(Long id);

}
